<!DOCTYPE html>
<html lang="en">
<head>
	<{include file="header.html"}>
	<title>组卷管理-<{$user_data['school_name']}>-德安信会计在线教育平台</title>
</head>
<body>
<div class="wrap">
	<!--star left-->
	<div class="column">
		<{include file="left_menu.html"}>
	</div>
	<div id="ContMianBox">
		<!--star子栏目-->
		<div class="sub-colum">
            <div class="tit"><{$left_menu_min.menu}></div>
            <ul>
                <{foreach from=$left_menu_min.list item=item}>
                <li <{if $item['url'] == $left_menu_min.curr}>class="curr"<{/if}>><a href="<{$item['url']}>"><{$item['name']}></a></li>
                <{/foreach}>
            </ul>
        </div>
		<!--end子栏目-->
		<!--end left-->
		<div class="container narrow">
			<!--star conter-->
			<div class="cetContent">
				<div class="tit p-lr20">
					<span><a href="/tk_category">分类列表</a></span>
				    <span class="curr">添加分类</span>
				</div>
				<!--star内容区域-->
				<div class="mainScroll">
					<div class="mainContainer line-all">
						<!--star 001-->
						<form class="layui-form " method="post" action="<{$post_url}>" id="form_add_role">
							<input type="hidden" name="id" value="<{$tk_category_info['id']|default:'0'}>" />
							<div class="layui-form-item">
								<label class="layui-form-label">分类名称</label>
								<div class="layui-input-inline">
									<input type="text" name="name" value="<{$tk_category_info.name|default:''}>" lay-verify="name" autocomplete="off" class="layui-input">
								</div>
							</div>

							<div class="layui-form-item">
								<input type="hidden" id="token" value="<{'VIMG'|get_qiniu_token}>" />
								<label class="layui-form-label">分类图标</label>
								<div class="layui-input-inline">
						            <div id="uploader2" class="upload_box" style="float:left; width:420px;">
						                <div class="queueList">
						                    <div id="dndArea2" class="placeholder dndArea">
						                        <div id="filePicker2" class="filePicker"></div>
						                        <p>或将照片拖到这里，最多可上传<script>document.write(fileNumLimit);</script>张图片</p>
						                    </div>
						                </div>
						                <div class="statusBar" style="display:none;">
						                    <div class="progress">
						                        <span class="text">0%</span>
						                        <span class="percentage"></span>
						                    </div><div class="info"></div>
						                    <div class="btns">
						                        <div id="filePickerBut2" class="filePickerBut"></div><div class="uploadBtn">开始上传</div>
						                    </div>
						                </div>
						                <div class="upload_img_input" input_name='image'></div>
						            </div>
						            <{if isset($tk_category_info['image']) AND $tk_category_info['image'] != ''}>
							  			<div class="layui-inline" style="float:left;"><img src="<{$tk_category_info['image']}>" style="max-height:175px;"/></div>
							  		<{/if}>
								</div>
							</div>

							<div class="layui-form-item">
								<label class="layui-form-label">排序</label>
									<div class="layui-input-inline">
										<input type="text" name="sort" value="<{$tk_category_info.sort|default:'0'}>" autocomplete="off" class="layui-input">
									</div>
							</div>

							<div class="layui-form-item">
							    <label class="layui-form-label">是否启用</label>
							    <div class="layui-input-block">
							            <{assign var="status" value=$tk_category_info.status|default:"1"}>
							            <input type="checkbox" <{if $status == 1}> checked <{/if}> name="status" lay-skin="switch" lay-filter="switchTest" value="1" >
							    </div>
						  	</div>

							<div class="layui-form-item layui-form-text">
								<label class="layui-form-label">分类简介</label>
								<div class="layui-input-inline">
									<textarea name="content" style="width: 400px;" class="layui-textarea"><{$tk_category_info.content|default:""}></textarea>
								</div>
							</div>

							<div class="layui-input-block">
								<button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
								<button type="reset" class="layui-btn layui-btn-primary">重置</button>
							</div>
						</form>
						<!--end 001-->

					</div>

				</div>
				<!--end内容区域-->
		</div>
	</div>
</div>
<{include file="footer.html"}>
</body>
</html>













